//
//  BaseNavigationController.m
//  iSeal5200
//
//  Created by Yuan.He on 12-12-4.
//  Copyright (c) 2012年 http://www.heyuan110.com. All rights reserved.
//

#import "NavigationController.h"
#import "CustomNavgationBar.h"

@interface NavigationController ()

@end

@implementation NavigationController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) 
    {
        CustomNavgationBar *navgationBar = [[CustomNavgationBar alloc]init];
        [self setValue:navgationBar forKey:@"navigationBar"];
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

-(BOOL)shouldAutorotateToInterfaceOrientation:(UIDeviceOrientation)orientation{
    if(orientation == UIDeviceOrientationPortrait) return YES;
    return NO;
}

@end
